<template>
  <nut-popup
  position="bottom"
  :style="{ height: '60%' }"
  v-model:visible="modelValue"
  round
  >
    <view class="yh-add-company-content">
      <view class="search-box">
        <input class="search-box-input" placeholder="搜索" type="text" />
         <view class="search-box-text"
          ><nut-icon
            font-class-name="iconfont"
            class-prefix="iconfont"
            name=".icon-tianjia"
            size="18"
            color="#ffffff"
          /><text>新增</text></view
        >
      </view>
      <view class="company-list">
        <view class="cell">
          <text class="name">北京市民望房地产开发有限责任公司</text>
          <text class="address">北京市通州区车站路47号-1号</text>
        </view>
        <view class="detail">查看详情</view>
      </view>
      <view class="company-list">
        <view class="cell">
          <text class="name">北京市民望房地产开发有限责任公司</text>
          <text class="address">北京市通州区车站路47号-1号</text>
        </view>
        <view class="detail">查看详情</view>
      </view>
      <view class="company-list">
        <view class="cell">
          <text class="name">北京市民望房地产开发有限责任公司</text>
          <text class="address">北京市通州区车站路47号-1号</text>
        </view>
        <view class="detail">查看详情</view>
      </view>
    </view>
  </nut-popup>
</template>
<script lang="ts">
export default {
  name: "yh-add-company",
  props: {
    modelValue: {
      default: false,
    },
    selectedOptions: {
      default: () => ({}),
    },
    handOptionsSelected: {
      default: function () {},
    },
  },
};
</script>
<style lang="scss">
.yh-add-company-content {
  .search-box {
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    &-input {
      width: 279px;
      height: 32px;
      background: #f7f7f7;
      border-radius: 4px;
      border: none;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    &-text {
      width: 56px;
      height: 32px;
      background: #dc2734;
      border-radius: 4px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #ffffff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .company-list {
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    .cell {
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: flex-start;
      padding: 12px 0;
      
      .name {
        font-size: 13px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        color: #333333;
        line-height: 18px;
      }
      .address {
        font-size: 12px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        color: #999999;
        line-height: 17px;
      }
    }
    .detail {
      font-size: 12px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      color: #999999;
      line-height: 18px;
      padding: 0 16px 0 0;
    }
  }
}
</style>
